1
general::
Make a blunder, as in I didn't know it was a surprise party; I guess I put my foot in it. This expression presumably alludes to setting one's foot down in mud or excrement. [Late 1700s] Also see FOOT IN ONE'S MOUTH.
American Heritage Idioms